package cn.edu.ustc.xrovers.serviceImpl;

import cn.edu.ustc.xrovers.service.BaseService;

/**
 * 提供通用业务的Service实现类
 * @author paddy
 *
 */
public class BaseServiceImpl implements BaseService{

	/**
	 * 获取贷款的HQL(未分析，已分析)
	 * @param isAnalyzed true=已分析，false=未分析
	 * @return 贷款查询的HQL
	 */
	public String getLoanHql(boolean isAnalyzed) {
		return "from Loan l where l.isAnalyzed="+isAnalyzed;
	}
	
	/**
	 * 获取贷款的HQL(未审批，已审批，正在审批，驳回，已偿还)
	 * @return
	 */
	public String getLoanHql(String status) {
		return "from Loan l where l.status.lstatus='"+status+"'";
	}

}
